package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.domain.db.Announcement;
import org.apache.ibatis.annotations.Select;

public interface AnnouncementMapper extends BaseMapper<Announcement> {

    //根据id查询公告信息
    @Select("SELECT * FROM `tb_announcement`")
    IPage<Announcement> findAnnouncement(IPage iPage);
}
